package run.bottle.shiro.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "ShiroConfig设置的路径权限")
@RestController
@RequestMapping("/sys/about/")
public class AdminController {

    @ApiOperation("必须拥有admin权限才能范围")
    @GetMapping("/msg")
    public String adminIndex() {
        return "hello admin";
    }

}
